Imports System.Windows.Forms

Public Class DialogItemsFound
  Public stringsArray As String()
  Public NumFolders As Integer
    Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.OK
        Me.Close()
    End Sub

    Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.Close()
    End Sub

  Private Sub DialogItemsFound_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Me.Label1.Text = String.Format(My.Resources.RenameFilesFS, stringsArray.Length, NumFolders)
    Me.ListBox1.DataSource = stringsArray
  End Sub
End Class
